package com.my.chapter7;

public class practice6 {
    public static void main(String[] args) {
        Chess c = new Chess(6);
    }
}

class Game{
    Game(int i){
        System.out.println("Game constructor");
    }
}

class BoardGame extends Game{

    BoardGame(int i) {
        super(i);
        System.out.println("BoardGame constructor");
    }
}

class Chess extends BoardGame{

    Chess(int i) {
        super(i);
        System.out.println("Chess constructor");
    }
}

